/* ====================================================================
 * (#)Header: PersonServiceBean.java
 * (#)Revision: 
 * (#)Date Created: 22-Mar-08 12:47:15 AM
 * (#)Created By: Karol Wozniak
 * ====================================================================
 *
 * Copyright (c) 2007 karolak .  All rights reserved.
 *
 * ====================================================================
 * 
 * The software application represented here is the sole property of 
 * karolak. Its unauthorized utilization is expressly prohibited.
 * 
 * ====================================================================
 */

package com.karolak.service.ejb.entity;

import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
import javax.interceptor.Interceptors;

import com.karolak.dao.Dao;
import com.karolak.service.ejb.interceptor.ExceptionInterceptor;
import com.karolak.service.ejb.interceptor.LogInterceptor;
import com.karolak.service.entity.PersonService;
import com.karolak.service.entity.PersonServiceImpl;
import com.karolak.service.entity.PersonServiceRemote;

/**
 * <code>PersonServiceBean</code> is used to ....
 * 
 * @author <a href="mailto:kwozniak@hotmail.com">Karol Wozniak</a>
 */
@Stateless(name = "PersonService")
@Local(value = PersonService.class)
@Remote(value = PersonServiceRemote.class)
@TransactionManagement(TransactionManagementType.CONTAINER)
@TransactionAttribute(TransactionAttributeType.SUPPORTS)
@Interceptors( { ExceptionInterceptor.class, LogInterceptor.class })
public class PersonServiceBean extends PersonServiceImpl implements PersonServiceRemote {

	@Override
	@EJB(beanInterface = Dao.class)
	public void setDao(Dao dao) {
		super.setDao(dao);
	}
}
